package com.chaopei.absinter;

/**
 * @Author Corday 天涯
 * @Date 2022/3/8 9:54
 */
public abstract class MyAbs {
   private  double weight;
   private String detail;
   public  MyAbs(){}
   //如果有多态管理,则需要定义抽象方法
    public  abstract  double calcArea(double...refs);
    public MyAbs(double weight, String detail) {
        this.weight = weight;
        this.detail = detail;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
